<template>
    <QilinWangEditor v-model:wangEditorConfig="wangEditorConfig"
        content="我才是初始化的内容"
        @uploadImage="uploadImage"
    ></QilinWangEditor>
</template>

<script setup>
import {reactive,ref} from "vue";


/*
    响应式选项区域
*/


/*
    数据变量定义区域
*/


/*
    计算属性等代码区域
*/


/*
    逻辑脚本代码区域
*/
const uploadImage=(file,insertFn)=>{
    console.log(file,insertFn);
    insertFn("http://47.122.16.23:8081/profile/upload/2024/04/18/20221123-mp-certified-banner_20240418100434A012.png",file.name,"");
};

const wangEditorConfig=reactive({
    value:"我是初始化的内容~",
    editorConfig:{
        placeholder:"请输入内容"
    }
});


/*
    生命周期等代码区域
*/


</script>

<style lang="scss" scoped>
.qilin-{

}
</style>
